//
//  CLDimensionLink.h
//  ComponentLinkDemo
//
//  Created by Jeanson on 2017/3/7.
//  Copyright © 2017年 zhenby. All rights reserved.
//

#pragma once
#import "ASDimension.h"
#import "CLDimension.h"

static inline ASDimension CLDimensionToASDimension(CLDimension cld) {
    return ASDimensionMake((ASDimensionUnit)cld.unit, cld.value);
}

static inline ASLayoutSize CLLayoutSizeToASLayoutSize(CLLayoutSize cld) {
    return ASLayoutSizeMake(CLDimensionToASDimension(cld.width), CLDimensionToASDimension(cld.height));
}
